# author:       李皓
# email:        133465202@qq.com
# repository:   https://gitee.com/ButchQiuQiu/
import json

# 配置字典---------------------------------------------
jsonStr: str = None
with open('setting.json', 'r', encoding='UTF-8') as read:
    jsonStr = read.read()
param: dict = json.loads(jsonStr)

# 运行时字典---------------------------------------------
"""
运行时字典, 结构
{
  "表名": {
    # 字段节点
    "column": {
      "字段名": {
        # 原始ddl
        "sourceDDL": "`BE_DELETE` char(1) DEFAULT NULL",
        # 最终处理过的DDL
        "resultDDl": "xxx"
      },
      # 路径节点
      "path": {
        # 主类 (按照注解的表名匹配)
        "mainClass": "",
        # 抽象类(按照名称匹配, 如果命名不规范可能匹配不上. 命民规范: AbstractBaseOrder 表名:BASE_ORDER)
        "superClass": ""
      }
    }
  },
  # 组件类节点, 如果没有代表当前环境没有组件类 
  "component":{
    # 节点
    "组件名":{
        "mainClass":""
    }
  }
}
"""
runDict: dict = {}



